/*
	Copyright (C) 2010 Salil Bhagurkar

	This file is part of k3

	k3 is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	k3 is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with k3.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _MALLOC_H_
#define _MALLOC_H_



void *malloc_get(u32 sz, char *zone_id);
void *malloc_resize(void *mem, u32 sz);
int malloc_free(void *mem);
int malloc_verify();

int init_malloc();

void malloc_add_reserved_zone(void *start, void *end, char *zone_id);
void malloc_add_free_zone(void *start, void *end, char *zone_id);


void __malloc_print_info(bool print_list, u32 limit_records);

#endif
